package io.renren.modules.alarm.dao;

import io.renren.modules.alarm.entity.MessageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;

import java.sql.Timestamp;

/**
 * 
 * 
 * @author zhourl
 * @email zhou11258@foxmail.com
 * @date 2022-03-06 20:24:38
 */
@Mapper
public interface MessageDao extends BaseMapper<MessageEntity> {

    MessageEntity getCurrent(@Param("id")Long Machid);

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    ArrayList getError(@Param("timeBefore") String dateBefor, @Param("timeAfter")String dateLast);

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    ArrayList getCount(@Param("timeBefore")String dateBefor,@Param("timeAfter")String dateLast);
	
}
